<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:fo="http://www.w3.org/1999/XSL/Format" >
  <xsl:output omit-xml-declaration="yes" method="text" indent="no"/>
  <xsl:template match="/">
    <xsl:for-each select="/REP_LENOBL_COMPPROCANDCONCCONTRACT/SHEET/RANGE_N">
      <xsl:if test="ITEM[@NAME='type']/@VALUE!='row'">
        <xsl:value-of select="concat(ITEM[@NAME='rbsName']/@VALUE,'&#xA;')"/>
      </xsl:if>
      <xsl:if test="ITEM[@NAME='type']/@VALUE='row'">
        <xsl:value-of select="concat(ITEM[@NAME='rbsName']/@VALUE,';',ITEM[@NAME='rbsAuction']/@VALUE,';',ITEM[@NAME='rbsCompete']/@VALUE,';',ITEM[@NAME='rbsQuery']/@VALUE,';',ITEM[@NAME='rbsOfrrequest']/@VALUE,';',ITEM[@NAME='rbsSingleSrc']/@VALUE,'&#xA;')"/>
      </xsl:if>
    </xsl:for-each>
  </xsl:template>
</xsl:stylesheet>